<?php 

class Add_Account_Login_SavePost_Validate_Account extends Ext_Validate_Abstract
{
    public function __construct($account)
    {
        $this->_account  = $account;
    }
    
    public function isValid()
    {
        $validatorChain = new Zend_Validate();
        $validatorChain
            ->addValidator(new Zend_Validate_NotEmpty(), true)
            ;
        
        if(!$validatorChain->isValid($this->_account)) {
            $this->addTitleMessages('Account', $validatorChain->getMessages());
            return false;
        }
        
        return true;
    }
}
